/*
 * @(#)BusinessObjectGroup.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.config.runtime;

import java.util.ArrayList;
import java.util.List;

import com.nhncorp.usf.core.service.ServiceType;

/**
 * @author Web Platform Development Team
 */
public class BusinessObjectGroup extends ServiceImpl implements Service {
    ScriptInfo scriptInfo;

    @Deprecated
    private List<BusinessObject> boInfos = new ArrayList<BusinessObject>();

    /**
     * Instantiates a new business object group.
     *
     * @param scriptInfo the script info
     */
    public BusinessObjectGroup(ScriptInfo scriptInfo) {
        this.scriptInfo = scriptInfo;
    }

    /**
     * condition block 사용 여부
     *
     * @return controllable the control block
     */
    public boolean isControlBlock() {
        return false;
    }

    /**
     * condition block 정의
     *
     * @param controllable the control block
     */
    public void setControlBlock(boolean controllable) {
        // for Service interface
    }

    /**
     * Gets the script info.
     *
     * @return the script info
     */
    public ScriptInfo getScriptInfo() {
        return scriptInfo;
    }

    /**
     * Sets the script info.
     *
     * @param scriptInfo the new script info
     */
    public void setScriptInfo(ScriptInfo scriptInfo) {
        this.scriptInfo = scriptInfo;
    }

    /**
     * Gets the bo infos.
     * 
     * @deprecated {@code getServiceInfos()} 사용
     * @return the bo infos
     */
    @Deprecated
    public List<BusinessObject> getBoInfos() {
        return boInfos;
    }

    /**
     * Adds the bo infos.
     *
     * @param boInfo the bo info
     * @deprecated {@code addServiceInfo()} 사용
     */
    @Deprecated
    public void addBoInfos(BusinessObject boInfo) {
        boInfos.add(boInfo);
    }

	@Override
	public ServiceType getServiceType() {
		return ServiceType.bo_group;
	}
}
